package tests;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import org.junit.*;


import warehouse.Worker;
import static org.junit.Assert.*;

/**
 * @author Apeiranthitis Antonios
 *		   Grassos Konstantinos
 *		   Moschos Theodoros:
 */
public class WorkerTest {

	public WorkerTest() {
	}



	@Test
	public void testDiscountPriceA() {
		double bPrice = 600;
		String cId = "A100";
		int quantity = 60;
		double expPrice = 484.5;
		double price = Worker.calculateDiscountPrice(bPrice,cId,quantity);
		assertEquals (price, expPrice,0);
	}

	@Test
	public void testDiscountPriceB() {
		double bPrice = 600;
		String cId = "B209";
		int quantity = 60;
		double expPrice = 541.5;
		double price = Worker.calculateDiscountPrice(bPrice,cId,quantity);
		assertEquals (price, expPrice,0);
	}

}
